package com.dkd.client.user;


import com.dkd.client.entity.PartnerEntity;
import com.dkd.client.entity.UserEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user-service")
public interface UserClient {
    @GetMapping("/user/{userId}")
    UserEntity getUserById(@PathVariable("userId") Long userId);

    @GetMapping("/partner/contact")
    PartnerEntity getPartnerByName(@RequestParam("name") String Name);
}
